package bean;

import java.util.HashMap;
import java.util.LinkedList;

public class userBean {
    private String userName;
    private  String userNumber;
    private String userType;
    private String password;
    private LinkedList<novelBean> bookSelf=new LinkedList<>();
    private HashMap<String,Long> map=new HashMap<>();
    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserNumber() {
        return userNumber;
    }

    public void setUserNumber(String userNumber) {
        this.userNumber = userNumber;
    }

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public LinkedList<novelBean> getBookSelf() {
        return bookSelf;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public HashMap<String, Long> getMap() {
        return map;
    }

    public void setMap(HashMap<String, Long> map) {
        this.map = map;
    }

    public void setBookSelf(LinkedList<novelBean> bookSelf) {
        this.bookSelf = bookSelf;
    }
    public void setBookSelf(novelBean... novels) {
        for (novelBean novel:novels) {
            this.bookSelf.addFirst(novel);
        }
    }
}
